<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Form表单</title>
</head>
<body>
{#<form action="" method="post">#}
{#    First name: <br>#}
{#    <label>#}
{#        <input type="text" name="first_name" value="Mickey">#}
{#    </label> <br>#}
{#    Last name: <br>#}
{#    <label>#}
{#        <input type="text" name="last_name" value="Mouse">#}
{#    </label> <br>#}
{##}
{#    <input type="submit" value="Submit">#}
{#</form>#}

{% if v.errors %}
    <p>
        数据出错啦，错误信息：{{ v.errors }}
    </p>
{% else %}
    <form action="" method="post">
        {% csrf_token %}
        <table>
            {{ v.as_table }}
            {{ v.as_ul }}
            {{ v.as_p }}
            {{ v.title }}
            {{ v.title.label }}
        </table>
        <input type="submit" value="Submit">
    </form>
{% endif %}


</body>
</html>